module.exports = {
  // 环境配置 dev 开发环境  prod 生产环境
  env: 'dev',
  // 服务启动端口
  port: 3000,
  /**
   * 数据库连接配置
   */
  db: {
    dbName: 'make',
    host: 'mysql-internet-cn-north-1-920f73feba044b36.rds.jdcloud.com',
    port: 3306,
    user: 'make_db',
    password: 'Wq125440'
  },
  /**
   * TOKEN key and expires
   */
  security: {
    // token key
    secret: "bf7f4b53c9a9dab2671bc397c850bd1d480feecf0e790e79",
    // 访问令牌过期时间
    accessExp: 60 * 60 * 2,
    refreshExp: 60 * 60 * 24 * 2
  },
  // 邮件配置
  email: {
    host: 'smtp.mxhichina.com',
    // service: 'qq', // service
    port: 465,
    secure: true,
    user: 'email@makeadmin.com',
    pass: 'Wq125440'
  },
  // Redis
  redis: {
    host: 'localhost',
    port: 6379,
    password: 'wq125440'
  },
  vaptcha: {
    vid: '5e706464ecbf53b8962e746a',
    key: '2414165f9ec44f62ae4e791116db9f1f'
  }
}